package net.wanho.zx.zx_cms.service;

import net.wanho.zx.pojo.cms.CmsConfig;
import net.wanho.zx.zx_cms.dao.CmsConfigDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sun.security.krb5.Config;

import java.util.List;

/**
 * @author： Depeng.Xu
 * @date： 2020/10/27 18:10
 * @description： TODO
 * @version: 1.0
 */
@Service
public class CmsConfigService {

    @Autowired
    private CmsConfigDao cmsConfigDao;

    public List<CmsConfig> queryDataUrlList() {
        return cmsConfigDao.findAll();
    }

    public CmsConfig getConfigById(String dataurl) {
        return cmsConfigDao.findById(dataurl).get();
    }
}
